/*!
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * SPDX-License-Identifier: Apache-2.0
 */

// TODO: this is just a "thunk". Replace it with something more generic.
export interface ResourceFetcher<T = string> {
    /**
     * Returns the contents of the resource, or undefined if the resource could not be retrieved.
     * Implementations are expected to handle Errors.
     */
    get(): Promise<T | undefined>
}
